package com.flea.hclv.model.dao;

import com.flea.hclv.model.entity.HCarVisitor;
import com.flea.hclv.model.entity.HVisitor;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HCarVisitorMapper {
    int deleteByPrimaryKey(String id);

    int insert(HCarVisitor record);

    int insertSelective(HCarVisitor record);

    HCarVisitor selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(HCarVisitor record);

    int updateByPrimaryKey(HCarVisitor record);

    List<HCarVisitor> selectByTimeTableId(@Param("timeTableId") String timeTableId,@Param("isGo") Integer isGo);

    int insertBatch(@Param("carVisitors") List<HCarVisitor> hCarVisitors);

    List<HCarVisitor> selectByTimeTableIdAndCarNumber(@Param("timeTableId") String timeTableId,@Param("carNumber") int carNumber);

    List<HCarVisitor> selectByTimeTableIdAndVisitorIds(@Param("timeTableId") String timeTableId,@Param("visitors") List<HVisitor> visitors);

    int updateBatch(@Param("newList") List<HCarVisitor> newList);

}